package com.ntoms.service.impl;

import java.io.File;
import java.io.IOException;
import java.util.Date;

import javax.annotation.Resource;

import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import com.ntoms.dto.base.BaseResult;
import com.ntoms.dto.enums.ExceptionCode;
import com.ntoms.dto.table.BaseFile;
import com.ntoms.persist.dao.BaseFileMapper;
import com.ntoms.service.BaseFileService;
import com.ntoms.util.Constants;
import com.ntoms.util.FileServerClient;
import com.ntoms.util.FileUtil;
import com.ntoms.util.UUIDGenerator;

import sun.misc.BASE64Encoder;

@Service(BaseFileService.SERVICE_NAME)
public class BaseFileServiceImpl implements BaseFileService {
	private static final Logger logger = LoggerFactory.getLogger(BaseFileServiceImpl.class);

    @Resource
    BaseFileMapper baseFileMapper;

	@Override
	public BaseResult test8() {
		BaseResult result = new BaseResult();		
    	return result;
	} 

	@Override
	public BaseResult test1() {
		BaseResult result = new BaseResult();		
    	return result;
	} 

	@Override
	public BaseResult uploadFile223(MultipartFile multipartFile) {
		logger.info("upload file");
		BaseResult result = new BaseResult();
		
    	return result;
	}

	@Override
	public BaseResult downloadFile(String fileId) {
		BaseResult result = new BaseResult();		
    	return result;
	}   
	
	@Override
	public BaseResult test2() {
		BaseResult result = new BaseResult();		
    	return result;
	} 
	
	@Override
	public BaseResult test() {
		BaseResult result = new BaseResult();		
    	return result;
	} 
    
}
